import RPi.GPIO as GPIO
import time

# GPIO_1 = 24
GPIO_2 = 25

GPIO.setmode(GPIO.BCM)
# GPIO.setup(GPIO_1, GPIO.IN)
GPIO.setup(GPIO_2, GPIO.OUT)

timeCount =0
print("start...")

runing = 1
while runing ==1:
    time.sleep(0.1)
    timeCount=timeCount+1
    print("start..." ,timeCount)
    if timeCount%2==0:
        GPIO.output(GPIO_2, GPIO.LOW)
    else:
        GPIO.output(GPIO_2, GPIO.HIGH)

    if GPIO.output(GPIO_2) == 1:
        print("input high")
    else:
        print("input low...")

    if timeCount >=200:
        runing=0


GPIO.cleanup()
print("exit...")
